package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;
import top.tangyh.basic.base.entity.Entity;


/**
 * <p>
 * 实体类
 * 监护仪设备详情表
 * </p>
 *
 * @author zqb
 * @date 2024-07-15 17:30:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("b_dev_detail")
public class BDevDetail extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 设备标识
     */
    @TableField(value = "dev_code", condition = LIKE)
    @Schema(description = "设备标识")
    private String devCode;
    /**
     * 品牌id
     */
    @TableField(value = "brand", condition = LIKE)
    @Schema(description = "品牌id")
    private Long brand;
    /**
     * 型号id
     */
    @TableField(value = "brand_type", condition = LIKE)
    @Schema(description = "型号id")
    private Long brandType;
    /**
     * 设备ip
     */
    @TableField(value = "ip", condition = LIKE)
    @Schema(description = "设备ip")
    private String ip;
    /**
     * mac地址
     */
    @TableField(value = "mac_address", condition = LIKE)
    @Schema(description = "mac地址")
    private String macAddress;
    /**
     * 科室编号
     */
    @TableField(value = "dept_no", condition = LIKE)
    @Schema(description = "科室编号")
    private String deptNo;
    /**
     * 心跳包发送时间间隔
     */
    @TableField(value = "heartbeat_interval", condition = EQUAL)
    @Schema(description = "心跳包发送时间间隔")
    private Integer heartbeatInterval;
    /**
     * 是否故障 是否故障0 否 1 是
     */
    @TableField(value = "is_break", condition = EQUAL)
    @Schema(description = "是否故障 是否故障0 否 1 是")
    private Integer isBreak;
    /**
     * 是否授权  0 否 1 是
     */
    @TableField(value = "is_authorize", condition = EQUAL)
    @Schema(description = "是否授权  0 否 1 是")
    private Integer isAuthorize;
    /**
     * 设备状态（0：未连接 1：已上电注册 ）
     */
    @TableField(value = "status", condition = EQUAL)
    @Schema(description = "设备状态（0：未连接 1：已上电注册 ）")
    private Integer status;
//
    /**
     * 是否删除 0否1是
     */
    @TableField(value = "is_deleted", condition = EQUAL)
    @Schema(description = "是否删除 0否1是")
    private Integer isDeleted;
    /**
     * 设备类型 1监护仪 2呼吸机
     */
    @TableField(value = "dev_type", condition = EQUAL)
    @Schema(description = "设备类型 1监护仪 2呼吸机")
    private Integer devType;
    /**
     * 设备型号标识code
     */
    @TableField(value = "brand_type_code", condition = LIKE)
    @Schema(description = "设备型号标识code")
    private String brandTypeCode;
    /**
     * 品牌标识code
     */
    @TableField(value = "brand_code", condition = LIKE)
    @Schema(description = "品牌标识code")
    private String brandCode;



}
